package com.bw.lib_common

import android.content.Context
import com.bw.lib_common.base.BaseApplication
import com.bw.lib_log.LoggerStrategy
import com.bw.lib_log.logger.Logger

object LoggerUtils {
    private val logger = Logger.Builder()
        .setTag("_club_")
        .setStrategy(LoggerStrategy.FILE) //输出策略，只需要改这里，日志输出改变
        .setDebug(true)
        .setPath(BaseApplication.instance.getDir("logger", Context.MODE_PRIVATE).path)
        .build()
    fun d(Tag:String,log:String){
        logger.d(Tag,log)
    }
    fun v(Tag:String,log:String){
        logger.v(Tag,log)
    }
    fun i(Tag:String,log:String){
        logger.i(Tag,log)
    }
    fun w(Tag:String,log:String){
        logger.w(Tag,log)
    }
    fun e(Tag:String,log:String){
        logger.e(Tag,log)
    }

}